using System;
using System.Collections.Generic;
using System.Text;

namespace Instedd.Labs.Geo.Library.Sms
{
    internal static class FileNamesGenerator
    {
        public static string GenerateKmlFileName(Configuration configuration)
        {
            return System.IO.Path.Combine(configuration.KmlOutput, "SMSchat.kml");
        }

        public static string GenerateKmlFileNameForSharing(Configuration configuration)
        {
            return System.IO.Path.Combine(configuration.KmlOutput, "SMSchatForSharing.kml");
        }

        public static string GenerateRssFileName(Configuration configuration)
        {
            return System.IO.Path.Combine(configuration.RssOutput, "SMSchat.rss");
        }

        public static string GenerateRssFileNameForSharing(Configuration configuration)
        {
            return System.IO.Path.Combine(configuration.RssOutput, "SMSchatForSharing.rss");
        }

        public static string GenerateRssFileName(Configuration configuration, string userName)
        {
            Guard.ArgumentNotNullOrEmptyString(userName, "userName");

            return System.IO.Path.Combine(configuration.RssOutput, string.Format("SMSchat.{0}.rss", userName));
        }
    }
}
